package com.mini.mysql.repository;

import com.mini.mysql.model.UserFullDept;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @author zl
 * @version 1.0
 * @date Created in 2020/5/13
 */
@Repository
public interface UserFullDeptRepository extends JpaRepository<UserFullDept, Long>, JpaSpecificationExecutor<UserFullDept> {

    List<UserFullDept> findByCheckTimeBetweenOrderByCheckTimeDesc(Date startTime, Date endTime);

}
